import ip

ip_str = """
"2c0f:fec0::"
"""

ip_list = []
for i in ip_str.split("\n"):
    if not i:
        continue
    i = i.replace('"', "")
    ip_list.append(i)

finder1 = ip.IPV6Find(r"ipv6_city.dat")

for index, ip in enumerate(ip_list):
    result2 = finder1.get(ip)
    print(result2, "结果")
